<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="ZipFile,nochump.util.zip.ZipFile,entries,size,getEntry,getInput" name="keywords">
<title>nochump.util.zip.ZipFile</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ZipFile - Papervision3D 3dcnapi文档';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Papervision3D 3dcnapi文档</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">全部包</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">全部类</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">引索</a>&nbsp;|&nbsp;<a href="../../../index.html?nochump/util/zip/ZipFile.html&amp;nochump/util/zip/class-list.html" id="framesLink1">框架</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">无框架</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="3dcnapi Logo" title="3dcnapi Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">类&nbsp;ZipFile</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">属性</a>&nbsp;| <a href="#methodSummary">方法</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("类 ZipFile"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">包</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">nochump.util.zip</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">类</td><td class="classSignature">public class ZipFile</td>
</tr>
</table>
<p></p>
  <p>This class represents a Zip archive.  You can ask for the contained
    entries, or get an input stream for a file entry.  The entry is
    automatically decompressed. </p>
  <p>此类用于从 ZIP 文件读取条目,你可以从包含的条目或取得输入流以读取指定 ZIP 文件条目.这个条目将被自动解压.</p>
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">公共属性</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">属性</th><th colspan="2">定义方</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#entries">entries</a> : Array<div class="summaryTableDescription">[只读]
   Returns an array of all Zip entries in this Zip file.返回 ZIP 文件条目的集合.</div>
</td><td class="summaryTableOwnerCol">ZipFile</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#size">size</a> : uint<div class="summaryTableDescription">[只读]
   Returns the number of entries in this zip file.Zip.返回 ZIP 文件条目数.</div>
</td><td class="summaryTableOwnerCol">ZipFile</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">公共方法</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">方法</th><th colspan="2">定义方</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ZipFile()">ZipFile</a>(data:IDataInput)</div>
<div class="summaryTableDescription">
   Opens a Zip file reading the given data.打开 ZipFile 从指定对象读取.</div>
</td><td class="summaryTableOwnerCol">ZipFile</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getEntry()">getEntry</a>(name:String):<a href="../zip/ZipEntry.html">ZipEntry</a>
</div>
<div class="summaryTableDescription">
   Searches for a zip entry in this archive with the given name.返回指定名称的 ZIP 文件条目.</div>
</td><td class="summaryTableOwnerCol">ZipFile</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getInput()">getInput</a>(entry:<a href="ZipEntry.html">ZipEntry</a>):ByteArray</div>
<div class="summaryTableDescription">
   Creates a byte array reading the given zip entry as
   uncompressed data.读取指定 ZIP 文件条目的未压缩数据到一个字节数组.</div>
</td><td class="summaryTableOwnerCol">ZipFile</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">属性详细信息</div>
<a name="entries"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">entries</td><td class="detailHeaderType">属性</td>
</tr>
</table>
<div class="detailBody">
<code>entries:Array</code>&nbsp;&nbsp;[只读]<p>
   Returns an array of all Zip entries in this Zip file.
     <span class="summaryTableDescription">返回 ZIP 文件条目的集合</span>.</p>
<span class="label">实现</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get entries():Array</code>
<br>
</div>
<a name="size"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">size</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>size:uint</code>&nbsp;&nbsp;[只读]<p>
   Returns the number of entries in this zip file.
     <span class="summaryTableDescription">返回 ZIP 文件条目数.</span></p>
<span class="label">实现</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get size():uint</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">构造函数详细信息</div>
<a name="ZipFile()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ZipFile</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">构造函数</td>
</tr>
</table>
<div class="detailBody">
<code>public function ZipFile(data:IDataInput)</code><p>
   Opens a Zip file reading the given data.
   
     <span class="summaryTableDescription">打开 ZipFile 从指定对象读取.</span></p>
<span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">data</span>:IDataInput</code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">方法详细信息</div>
<a name="getEntry()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getEntry</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td>
</tr>
</table>
<div class="detailBody">
<code>public function getEntry(name:String):<a href="../zip/ZipEntry.html">ZipEntry</a></code><p>
   Searches for a zip entry in this archive with the given name.
      <span class="summaryTableDescription">返回指定名称的 ZIP 文件条目；</span></p>
<span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; the name. May contain directory components separated by
   slashes ('/').
   </td>
</tr>
</table>
可以包含使用'/'分割的多个条目。
<p></p>
<span class="label">返回</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../zip/ZipEntry.html">ZipEntry</a></code> &mdash; 
                        the zip entry, or null if no entry with that name exists.
   
                        
                     </td>
</tr>
</table>
返回zip条目,如果不存在则返回null
</div>
<a name="getInput()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getInput</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getInput(entry:<a href="ZipEntry.html">ZipEntry</a>):ByteArray</code><p>
   Creates a byte array reading the given zip entry as
   uncompressed data.  Normally zip entry should be an entry
   returned by getEntry() or entries().</p>
<p> <span class="summaryTableDescription">读取指定 ZIP 文件条目的未压缩数据到一个字节数组.</span>通常zip 条目通过getEntry() 或entries()返回.</p>
<span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">entry</span>:<a href="ZipEntry.html">ZipEntry</a></code> &mdash; the entry to create a byte array for.
   </td>
</tr>
</table>
建立的字节数组条目.
<p></p>
<span class="label">返回</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>ByteArray</code> &mdash; the byte array, or null if the requested entry does not exist.
   </td>
</tr>
</table>
字节数组，如果不存在存返回null.
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">http://blog.papervision3d.org</center>
</div>
</body>
</html>
<!--http://blog.papervision3d.org-->
